package com.atguigu.spzx.order.mapper;

import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.entity.order.OrderItem;
import com.atguigu.spzx.model.entity.product.ProductSku;

import java.util.List;

/**
 * @ClassName: OrderInfoMapper
 * @Package: com.atguigu.spzx.order.mapper
 * @Description
 * @Author 孤妤
 * @Date: 2023/12/20 18:15
 */
public interface OrderInfoMapper {
    // 查询购买的商品sku对象
    List<ProductSku> selectProductSku(List<OrderItem> orderItemList);
    // 保存订单数据
    void insertOrderInfo(OrderInfo orderInfo);
    // 支付页面展示的信息
    OrderInfo selectOrderInfoByOrderId(Long orderId);
    // 商品直接购买展示提交订单页面
    ProductSku selectProductSkuBySkuId(Long skuId);
    // 查询当前用户的订单数据
    List<OrderInfo> findOrderInfoByUserIdPage(Long userId, Integer orderStatus);
}
